package com.tender.controller.templates;

import com.tender.dto.ShiroUserDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import com.tender.ShiroUserBizService;
import com.tender.common.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

// @Controller
@RestController
public class UserRegisterController {

    @Autowired
    private ShiroUserBizService shiroUserBizService;

    @GetMapping("/register/user")
    public Result<Boolean> registerUser() {
        shiroUserBizService.registerUser(new ShiroUserDTO());

        return Result.of(true);
    }

}
